package org.magnerfuller.imtoolkit.server.connection.manager.event;

import org.magnerfuller.imtoolkit.server.connection.manager.ConnectionManager;
import org.magnerfuller.imtoolkit.server.session.Session;

/**
 * 
 * Class ConnectionManagerEvent
 * 
 * Objects of this class represent events that occur within a
 * ConnectionManager.
 *
 */
public class ConnectionManagerEvent {
  
  /** source -- The source of the event. */
  protected ConnectionManager source;
  
  /** session -- The session involved, if any. */
  protected Session session;
  
  /**
   * Constructor
   * 
   * @param source the source of the event
   * @param session the session involved, or null
   */
  public ConnectionManagerEvent(ConnectionManager source, Session session) {
    this.source = source;
    this.session = session;
  }//ConnectionManagerEvent
  
  /**
   * Get the source of the event.
   * 
   * @return the source
   */
  public ConnectionManager getSource() {
    return source;
  }//getSource
  
  /**
   * Get the session involved.
   * 
   * @return the session, or null
   */
  public Session getSession() {
    return session;
  }//getSession

}//ConnectionManagerEvent
